<#include "/common/pager_style/commonForm.ftl" encoding="UTF-8">
<script type="text/javascript" src="${request.contextPath}/resources/FCKeditor/fckeditor.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/plugin/ajaxupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/zyplugin/appplugins/jquery.appPlugins.js"></script>
<#-- 定义有哪些按钮 reset:重写 back:返回 -->
<#assign buttonsName = {"list":"刷新","save":"保存","back":"返回"}>
<#assign buttonsImage={"refuse":"detail.gif"}>
<script language="JavaScript">
<!--
	var actName="weekReturnReasonAction";
	var domainName="WeekReturnReason";


	function checkForm(){
	    var strMsg = "";
	    strMsg = strMsg + Validate( "weekReturnReason.sortNum", "编号","Numeric");
	    strMsg = strMsg + Validate( "weekReturnReason.reason", "退回理由","NotEmpty");
		//类型：AlphaNumeric,Date,Email,Empty,Numeric,Money,PostalCode,Url
		if( strMsg != "" )
		{
			alert( strMsg );
			return false;
		}
		else	return true;
	}

	$(function() {
		$("form").validationEngine({alertShow:true}); //表单验证
	});
//-->
</script>

</head>
<body class="frameForm">
<form name="" action="" method="post" onsubmit="return checkForm();" class="form-horizontal" role="form">
	<input type="hidden" id="id" name="id" value="${(weekReturnReason.id)?if_exists}"/>
	<input type="hidden" id="weekReturnReason.id" name="weekReturnReason.id" value="${(weekReturnReason.id)?if_exists}"/>
	<input type="hidden" name="page.offset" id="page.offset" value="${(page.offset)?if_exists}" >
	<input type="hidden" name="page.pageSize" id="page.pageSize" value="${(page.pageSize)?if_exists}">

	<div id="mainDiv">
		<div id="topDiv">
			<#-- 生成按钮 -->
			<#include "/common/pager_style/pageButtons.ftl" encoding="UTF-8">
		</div>
		<div id="centerDiv">
			<div id="body">
				<div class="ui-formfield">
				<table class="tbl">
					<caption>退回理由模板编辑</caption>
					<!-- 数据录入 -->
					<tbody>
			<@pEdit.pageEditText
					label="编号"
					pageState="modify"
					colSpanNum="3"
					beginTR="true"
					endTR="true"
					attName="weekReturnReason.sortNum"
					attValue="${(weekReturnReason.sortNum)?if_exists}"/>
					
			<@pEdit.pageEditTextarea
					label="退回理由"
					pageState="modify"
					validate="rule[notEmpty]"
					attName="weekReturnReason.reason"
					height="50px;"
					colSpanNum="3"
					cssStyle="height:100%;width:100%;"
					attValue="${(weekReturnReason.reason)?if_exists}"/>
					</tbody>
				</table>

				</div>
			</div>
		</div>
	</div>
</form>
</body>
</html>